// GlobalSetTriggerAction.cpp
// 1.0

//    This file is part of OpenRedAlert.
//
//    OpenRedAlert is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, version 2 of the License.
//
//    OpenRedAlert is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with OpenRedAlert.  If not, see <http://www.gnu.org/licenses/>.

#include "GlobalSetTriggerAction.h"
#include "TriggerAction.h"

extern bool GlobalVar[100];

/**
 */
GlobalSetTriggerAction::GlobalSetTriggerAction(int number) :
	TriggerAction(TriggerAction::GLOBAL_SET)
{
    // Set the number
	this->number = number;
}

/**
 */
void GlobalSetTriggerAction::execute()
{
    // Set the blobal variable
	GlobalVar[number] = true;
}
